﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MementoClientConnectorInterfaces;
using System.ComponentModel.Composition;

namespace MementoFakeClientConnector
{
    [Export(typeof(IMementoClientConnector))]
    public class FakeClient : IMementoClientConnector
    {
        public List<TaskSourceSystemConfiguration> GetConfigurations()
        {
            return new List<TaskSourceSystemConfiguration> {new TaskSourceSystemConfiguration { UniqueID = ""}};
        }

        public List<Task> GetTasksForUser(string configurationUniqueID, string userName)
        {
            List<Task> tasks = new List<Task>();
            tasks.Add(new Task { ProjectName = "Awfulsoft Removal", TaskName = "Install new version on development environment", AccountName = "Manweb", ProjectID = "Project1", TaskID = "Task1" });
            tasks.Add(new Task { ProjectName = "MyAccount Phase 1", TaskName = "Create new stub user controls", AccountName= "Manweb", ProjectID = "Project1", TaskID = "Task2" });
            tasks.Add(new Task { ProjectName = "TestProjectA", TaskName = "Task C", AccountName= "Moneybags Finance, Inc.", ProjectID = "Project1", TaskID = "Task3" });
            tasks.Add(new Task { ProjectName = "TestProjectB", TaskName = "Task A", AccountName= "Moneybags Finance, Inc.", ProjectID = "Project2", TaskID = "Task4" });
            tasks.Add(new Task { ProjectName = "TestProjectC", TaskName = "Task A", AccountName= "Smellco Telco Ltd.", ProjectID = "Project3", TaskID = "Task5" });
            tasks.Add(new Task { ProjectName = "TestProjectC", TaskName = "Task B", AccountName= "Smellco Telco Ltd.", ProjectID = "Project3", TaskID = "Task6" });
            tasks.Add(new Task { ProjectName = "TestProjectC", TaskName = "Task C", AccountName= "SmallMart", ProjectID = "Project3", TaskID = "Task7" });
            tasks.Add(new Task { ProjectName = "TestProjectC", TaskName = "Task D", AccountName= "SmallMart", ProjectID = "Project3", TaskID = "Task8" });
            return tasks;
        }
    }
}
